* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-width: 400px;
  background: linear-gradient(135deg, #1a2a6c, #4d4dff);
  color: white;
  padding: 15px;
}

.container {
  max-width: 500px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.input-group {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.input-group input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.input-group input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #4d4dff;
}

#addMapping {
  width: 100%;
  padding: 12px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s;
}

#addMapping:hover {
  background: #45a049;
}

.mapping-list {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

h2 {
  margin-bottom: 15px;
  font-size: 18px;
  text-align: center;
}

#mappingsContainer {
  max-height: 300px;
  overflow-y: auto;
}

.mapping-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.mapping-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.mapping-text {
  flex-grow: 1;
  margin-right: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapping-original {
  font-weight: bold;
  color: #ffcc00;
}

.mapping-icon {
  font-size: 20px;
  color: #ffcc00;
  margin-right: 5px;
}

.mapping-target {
  color: #4dff88;
}

.actions button {
  padding: 6px 10px;
  margin-left: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.edit-btn {
  background-color: #2196F3;
  color: white;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.empty-state {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}